package xby.study.annotations.demo2;

import java.util.Arrays;

/**
 *
 */
public class TestDemo3 {
    public static void main(String[] args) {
        System.out.println("爸爸");
        Arrays.stream(A.class.getFields()).forEach(System.out::println);
        Arrays.stream(A.class.getDeclaredFields()).forEach(System.out::println);

        System.out.println("儿子");
        Arrays.stream(AA.class.getFields()).forEach(System.out::println);
        Arrays.stream(AA.class.getDeclaredFields()).forEach(System.out::println);
    }

    
}
